package cn.vc.auth.feign.clients;

import cn.vc.basicmodule.entity.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient("auth-service")
public interface CaptchaClient {
    /**
     * <h2>发送验证码</h2>
     * @param email
     * @return
     */
    @PostMapping("/captcha/{email}/{prefix}")
    public Result<?> sendCaptcha(@PathVariable("email") String email, @PathVariable("prefix") String prefix);
}
